<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  console.log( Math.round( 3.567 ) );
  console.log( Math.round( -3.567 ) );
  console.log( Math.random() );
  console.log( Math.abs(-4) );
  console.log( Math.floor(3.999999) );
  console.log( Math.ceil(3.000000001) );
  console.log( Math.max(45,36,74,28) );
  console.log( Math.max([45,36,74,28]) );
  console.log( Math.min(45,36,74,28) );
  console.log( Math.sqrt(9) );
  console.log( Math.pow(3, 4) );

  // 角度转弧度
  var h = Math.PI / 180 * 90;
  console.log( Math.sin( h ) );
  console.log( Math.cos( h ) );

  console.log( Math.PI );
</script>
</html>